package com.example.everying.model.entity.order;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("transfer_record")
public class TransferRecord {
    @TableId(type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "交易编号")
    private String txNo;

    @ApiModelProperty(value = "付款用户ID")
    private String fromUserId;

    @ApiModelProperty(value = "收款用户ID")
    private String toUserId;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "状态0-处理中,1-成功,2-失败")
    private String status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}
